﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.common.session
{
    public class User
    {
        private string _url = "";
        private string _sessionid = "";
        private string _userId = "";
        private string _userName = "";
        private string _realName = "";
        private string _machine = "";
        private string _ipv4add = "";
        private bool _safety = false;

        public string Sessionid
        {
            get
            {
                return _sessionid;
            }

            set
            {
                _sessionid = value;
            }
        }

        public string UserId
        {
            get
            {
                return _userId;
            }

            set
            {
                _userId = value;
            }
        }

        public string UserName
        {
            get
            {
                return _userName;
            }

            set
            {
                _userName = value;
            }
        }

        public string RealName
        {
            get
            {
                return _realName;
            }

            set
            {
                _realName = value;
            }
        }

        public string Machine
        {
            get
            {
                return _machine;
            }

            set
            {
                _machine = value;
            }
        }

        public string Ipv4add
        {
            get
            {
                return _ipv4add;
            }

            set
            {
                _ipv4add = value;
            }
        }

        public string Url
        {
            get
            {
                return _url;
            }

            set
            {
                _url = value;
            }
        }

        public bool Safety
        {
            get
            {
                return _safety;
            }

            set
            {
                _safety = value;
            }
        }

        public override string ToString()
        {
            StringBuilder text = new StringBuilder();
            text.Append("session=").Append(this._sessionid).Append(" RealName=").Append(this._realName);
            return text.ToString();
        }
    }
}
